/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package org.beiyou;

/**
 * <p>Project: javase202202 - Ex3
 * <p>Powered by Lisi On 2022-05-31 10:11:12
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class Ex3 {
    public static void main(String[] args) {
        int i = 10;
        byte bb = (byte)i;
        System.out.println(bb);

        int a = 10;
        int b = 6;
        if(args.length == 2){
            a = Integer.parseInt(args[0]);
            b = Integer.parseInt(args[1]);
        }
        if (a % b == 0) {
            System.out.printf("%d ÷ %d =  %d%n", a, b, a / b);
        } else {
            System.out.printf("%d ÷ %d =  %d ... %d%n", a, b, a / b, a % b);

        }
    }
}
